package com.microservices.yucloud.dubboclient.controller;

import com.microservices.yucloud.dubboapi.service.HelloService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zy
 * @date 2019-08-21 19:55
 **/
@Slf4j
@RestController
public class TestController {

    @Reference
    HelloService helloService;

    @GetMapping("/test")
    public String test() {
        return helloService.hello("pluto");
    }
}
